package com.maycari.captainbi.common.bo;

import java.util.ArrayList;
import java.util.List;

public class TreeResult {
    private String label;
    private String id;
    private List<TreeResult> children;
    private boolean checked;

    public TreeResult(){
        this.children = new ArrayList<TreeResult>();
    }

    public String getLabel() {
        return label;
    }

    public void setLabel(String label) {
        this.label = label;
    }

    public String getId() {
        return id;
    }

    public void setId(String id) {
        this.id = id;
    }

    public boolean isChecked() {
        return checked;
    }

    public void setChecked(boolean checked) {
        this.checked = checked;
    }

    public List<TreeResult> getChildren() {
        return children;
    }

    public void setChildren(List<TreeResult> children) {
        this.children = children;
    }

    public void addChildren(TreeResult children){
        this.children.add(children);
    }
}
